﻿using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace DB.Models;

/// <summary>
/// 部门实体
/// </summary>
public partial class Department
{
        /// <summary>
    /// 部门唯一标识符
    /// </summary>
    public string Id { get; set; } = null!;

        /// <summary>
    /// 上级部门ID
    /// </summary>
    public string? ParentId { get; set; }

        /// <summary>
    /// 部门名称
    /// </summary>
    public string? Name { get; set; }

    public string? Description { get; set; }

    public DateTime? CreateTime { get; set; }

    public DateTime? UpdateTime { get; set; }

    public string? Path { get; set; }
    [JsonIgnore]
    public virtual ICollection<RegistUser> RegistUsers { get; set; } = new List<RegistUser>();
}
